{extend name="login_base" /} {block name="seo"}
{/block}
{block name="css"}
{/block}
{block name="body"}

<div class="u-container">
    <a href="/" class="u-logo" style="margin-bottom:30px;">
        <img src="__HOME__/images/logo.png"/>
    </a>
    <h3 class="ws">首次登陆，需要完善并激活您的账号</h3>
    <form class="layui-form" action="" id="bind_email" method="post">
        <div class="inline layui-clear">
            <i class="iconfont icon-zhanghao"></i>
            <input type="hidden" name="bind_email" value="1"/>
            <input type="text" name="nickname" lay-verify="mobile" value="" placeholder="请输入您的手机或邮箱"/>
        </div>
        <div class="inline layui-clear">
            <i class="iconfont icon-mima"></i>
            <input type="password" name="password" lay-verify="mobile_code" value="" placeholder="请输入您的密码"/>
        </div>
        <div class="inline layui-clear">
            <i class="iconfont icon-yanzhengma"></i>
            <input type="text" name="captcha" placeholder="右侧验证码" maxlength="4"
                   style="width:calc(100% - 120px - 70px);"/>
            <img src="{:url('index/page/captcha')}?'+Math.random();" title="点击可刷新验证码" onclick="this.src='{:url(\'index/page/captcha\')}?_='+Math.random()"  class="imgcode" />
        </div>
        <button class="btn" lay-submit lay-filter="register">下一步，验证</button>
        <button class="tg">跳过这一步</button>
    </form>
</div>
<script id="w_info_box" type="text/html">
    <form class="layui-form " action="" id="sendCode">
        <div class="layui-form-item">
            <input type="text" class="mails phone_cv" name="object" readonly/>
            <input type="hidden"  id="checktype" name="checktype" value="" />
        </div>
        <div class="layui-form-item" style="position: relative">
            <input type="text" class="mails sd_dx_code" name="checkcode" autocomplete="off" maxlength="6" placeholder="验证码"/>
        </div>
    </form>
</script>
{/block}
{block name="script"}
<script src="__PUBLIC__/js/jquery-3.3.1.min.js"></script>
<script src="__PUBLIC__/plugins/layui/layui.js"></script>
<script src="__HOME__/js/public.js"></script>
<script>
    layui.use(['layer', 'form'], function () {
        var layer = layui.layer;
        var form = layui.form;
        //跳过这一步
        $(".tg").click(function (event) {
            event.preventDefault();
            layer.open({
                type: 0,
                shadeClose: true,
                skin: 'atuikeLayerSkin1',
                content: '若跳过此步，可能会导致以后您无法<font color="#F30"> 找回密码 </font>等操作，是否跳过？',
                btn: ['确认跳过', '取消'],
                btn1: function (e) {
                    location = "/user/index.html";
                }
            });
        });
        formVerify(form);
        registerListen(form);
    });
</script>
{/block}
